<?php

class IndexController extends Zend_Controller_Action
{

    public function init()
    {
        /* Initialize action controller here */
    }

	public function indexAction()
	{
		$form = new Form_Simple();

		if ($this->getRequest()->isPost()) {
			if ($form->isValid($_POST)) {
				$form->upfile1->receive();
				//var_dump($info = $form->upfile1->getFileInfo());
				var_dump($form->upfile1->getFilename());
	
			} else {
				echo 'Invalida form';
			}
		}
		
		$this->view->form = $form;
	}

}

